limits of piecewise functions calculus